package cmm.Seman;

/**
 * Created by Iray on 2017/12/1.
 */
public class FourCode {

    public static final String JUMP = "JUMP";
    public static final String IN = "IN";
    public static final String OUT = "OUT";
    public static final String READ = "READ";
    public static final String WRITE = "WRITE";
    public static final String INT = "INT";
    public static final String REAL = "REAL";
    public static final String ASSIGN = "ASSIGN";
    public static final String PLUS = "+";
    public static final String MINUS = "-";
    public static final String MUL = "*";
    public static final String DIV = "/";
    public static final String GT = ">";
    public static final String LT = "<";
    public static final String GET = ">=";
    public static final String LET = "<=";
    public static final String EQ = "==";
    public static final String NEQ = "!=";

    private String first;
    private String second;
    private String third;
    private String forth;

    public FourCode(){}

    public FourCode(String first, String second, String third, String forth){

        this.first = first;
        this.second = second;
        this.third = third;
        this.forth = forth;
    }


    public String getFirst() {
        return first;
    }

    public void setFirst(String first) {
        this.first = first;
    }

    public String getSecond() {
        return second;
    }

    public void setSecond(String second) {
        this.second = second;
    }

    public String getThird() {
        return third;
    }

    public void setThird(String third) {
        this.third = third;
    }

    public String getForth() {
        return forth;
    }

    public void setForth(String forth) {
        this.forth = forth;
    }

    public String toString() {
        return "(" + first + ", " + second + ", " + third +  ", " + forth + ")";
    }
}
